/*******************************************************************************
 * Copyright (c) 2018, 2018 GuoGuang Corporation and others.
 * All rights reserved. 
 *  
 * Create By Time 2018-2018年3月21日-下午1:02:42
 * Contributors:
 *     longshiyu
 * @longsy316@163.com
 *******************************************************************************/

package com.lsy.onehot.rnn.qa.data;

import java.util.LinkedList;

import com.lsy.lstm.ai.rnn.qa.dataset.io.CorpusHandle;
import com.lsy.onehot.rnn.qa.inner.IOnehot;

/**
 * @author Administrator
 * @time 2018 - 2018年3月21日 - 下午1:02:42
 * @desc DataSetHandle.java
 */
public class DataSetHandle {

	/**
	 * 
	 */
	public DataSetHandle() {
		// TODO Auto-generated constructor stub
	}

	
	//保存参考向量
	public static void  saveAsSignalVectorModel(Object obj){
		CorpusHandle.writeObject(obj,  CorpusHandle.getFileToTempPath(IOnehot.SPELICAL_SEAS_SIGNAL_BIN) );
	}
	
	@SuppressWarnings("unchecked")
	public static LinkedList<Character> getSignalVector(){
		return  (LinkedList<Character>) CorpusHandle.readObject(CorpusHandle.getFileToTempPath(IOnehot.SPELICAL_SEAS_SIGNAL_BIN));
	}
	
}
